.class public Lcom/teewoo/app/bus/db/collection/LineCollectionDBHelper;
.super Landroid/database/sqlite/SQLiteOpenHelper;
.source "LineCollectionDBHelper.java"


# static fields
.field public static final DATABASE_NAME:Ljava/lang/String; = "locdata.db"

.field public static final DATABASE_VERSON:I = 0x2

.field public static final TABLENAME:Ljava/lang/String; = "line_collection"


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    .line 15
    const-string v0, "locdata.db"

    const/4 v1, 0x0

    const/4 v2, 0x2

    invoke-direct {p0, p1, v0, v1, v2}, Landroid/database/sqlite/SQLiteOpenHelper;-><init>(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)V

    .line 16
    return-void
.end method


# virtual methods
.method public onCreate(Landroid/database/sqlite/SQLiteDatabase;)V
    .locals 1
    .parameter "db"

    .prologue
    .line 20
    const-string v0, "CREATE TABLE if not exists line_collection(_id integer primary key autoincrement, line_id integer, line_name varchar(40), station_id integer, station_name varchar(40), save_time varchar(25));"

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 21
    return-void
.end method

.method public onUpgrade(Landroid/database/sqlite/SQLiteDatabase;II)V
    .locals 1
    .parameter "db"
    .parameter "oldVersion"
    .parameter "newVersion"

    .prologue
    .line 25
    const-string v0, "DROP TABLE IF EXISTS line_collection"

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 26
    invoke-virtual {p0, p1}, Lcom/teewoo/app/bus/db/collection/LineCollectionDBHelper;->onCreate(Landroid/database/sqlite/SQLiteDatabase;)V

    .line 27
    return-void
.end method
